﻿@model WeProjects.Models.ProjectViewModel

@{
    ViewBag.Title = "Edit";
}
<style type="text/css">
    table {
        width: 90% !important;
    }
</style>

<h2>编辑项目</h2>
<p class="buttonIn">
    @Html.ActionLink("返回列表", "Index")
</p>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
 
        @Html.HiddenFor(model => model.ID)

        <div class="form-group">
            <label class="control-label width-40p">@Html.LabelFor(model => model.Title, "标题")</label>
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="form-group">
            <label class="control-label width-40p">@Html.LabelFor(model => model.SerialNumber, "编号")</label>
            @Html.EditorFor(model => model.SerialNumber)
            @Html.ValidationMessageFor(model => model.SerialNumber)
        </div>
        <div class="form-group">
            <label class="control-label width-40p" style="vertical-align:top;">@Html.LabelFor(model => model.Descritpion, "内容")</label>
            <div style="display:inline-block;overflow:hidden;zoom:1;width:90%">
                @Html.EditorFor(model => model.Descritpion)
                @Html.ValidationMessageFor(model => model.Descritpion)
            </div>
        </div>
        <div class="form-group">
            <label class="control-label width-40p"></label>
            @Html.LabelFor(model => model.SubProjectsFileUploadAllowed, "是否允许在子项目中上传文件 ")
            @Html.EditorFor(model => model.SubProjectsFileUploadAllowed)
            @Html.ValidationMessageFor(model => model.SubProjectsFileUploadAllowed)
        </div>
        <div class="form-group">
            <label class="control-label width-40p"></label>
            @Html.LabelFor(model => model.TaskDueTimeEnforcement, "在时间截至后是否允许上传文件 ")
            @Html.EditorFor(model => model.TaskDueTimeEnforcement)
            @Html.ValidationMessageFor(model => model.TaskDueTimeEnforcement)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.ParentID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParentID)
            @Html.ValidationMessageFor(model => model.ParentID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.OwnerID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.OwnerID)
            @Html.ValidationMessageFor(model => model.OwnerID)
        </div>*@


        @*<div class="editor-label">
            @Html.LabelFor(model => model.CreationDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreationDate)
            @Html.ValidationMessageFor(model => model.CreationDate)
        </div>*@
        <div class="form-group">
            <label class="control-label width-40p"></label>
            <input type="submit" value="保存" class="btn btn-success" />
        </div>
    </fieldset>
}
